import Vue from 'vue'
import {
  Swipe,
  SwipeItem,
  Toast,
  Lazyload,
  Popup,
  List,
  PullRefresh
} from 'vant'

Vue.use(Swipe)
  .use(SwipeItem)
  .use(Popup)
  .use(PullRefresh)
  .use(List)
  .use(Lazyload, {
    preLoad: 1.3,
    error: './img/error.png',
    loading: './img/loading.gif',
    attempt: 1
  }) // v-lazy图片懒加载

Vue.prototype.$toast = Toast
